package com.itheima.day11.bytestream.test3;


import java.io.FileOutputStream;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        // 创建字节输出流对象
        FileOutputStream fos = new FileOutputStream("myCode\\src\\com\\itheima\\day11\\a.txt", true);

        // 写数据
        fos.write("\r\n".getBytes());
        fos.write(97);
        fos.write("\r\n".getBytes());
        fos.write(98);
        fos.write("\r\n".getBytes());
        fos.write(99);
        fos.write("\r\n".getBytes());
        fos.write(100);
        fos.write("\r\n".getBytes());

        // 释放资源
        fos.close();
    }
}
